import Layout from '@/page/index/'

/**
 * 默认 meta 数据
 * @type {{isTab: boolean, menu: boolean}}
 */
let defaultMeta = {
    menu: true,  // 是否加载左菜单
    isTab: true, // 是否加载tab
    keepAlive: false // tag 是否缓存 (缓存tag页面)
}

/**
 * 动态路由页, 对于后台菜单数据
 */
export default [
    {
        path: '/',
        component: Layout,
        children: [
            {
                path: '/views/gc/codeGeneration/codeGeneration',
                name: "数据表",
                component: () => import('@/views/gc/codeGeneration/codeGeneration.vue'),
                meta: defaultMeta
            },
            {
                path: '/views/gc/db/datasource',
                name: '数据源',
                component: () => import('@/views/gc/db/datasource.vue'),
                meta: defaultMeta
            },

            {
                path: '/views/admin/address/address',
                name: '地址管理',
                component: () => import('@/views/admin/address/address.vue'),
                meta: defaultMeta
            },
            {
                path: '/views/admin/authority/authority',
                name: '接口管理',
                component: () => import('@/views/admin/authority/authority.vue'),
                meta: defaultMeta
            },
            {
                path: '/views/admin/banner/banner',
                name: 'banner 管理',
                component: () => import('@/views/admin/banner/banner.vue'),
                meta: defaultMeta
            },
            {
                path: '/views/admin/blacklist/blacklist',
                name: '黑/白名单',
                component: () => import('@/views/admin/blacklist/blacklist.vue'),
                meta: defaultMeta
            },
            {
                path: '/views/admin/config/config',
                name: '全局配置',
                component: () => import('@/views/admin/config/config.vue'),
                meta: defaultMeta
            },
            {
                path: '/views/admin/dep/dep',
                name: '部门管理',
                component: () => import('@/views/admin/dep/dep.vue'),
                meta: defaultMeta
            },
            {
                path: '/views/admin/dictionary/dictionary',
                name: '字典管理',
                component: () => import('@/views/admin/dictionary/dictionary.vue'),
                meta: defaultMeta
            },
            {
                path: '/views/admin/log/log',
                name: '日志记录',
                component: () => import('@/views/admin/log/log.vue'),
                meta: defaultMeta
            },
            {
                path: '/views/admin/menu/menu',
                name: '菜单管理',
                component: () => import('@/views/admin/menu/menu.vue'),
                meta: defaultMeta
            },
            {
                path: '/views/admin/msg/msg',
                name: '消息管理',
                component: () => import('@/views/admin/msg/msg.vue'),
                meta: defaultMeta
            },
            {
                path: '/views/admin/role/role',
                name: '角色管理',
                component: () => import('@/views/admin/role/role.vue'),
                meta: defaultMeta
            },
            {
                path: '/views/admin/user/user',
                name: '用户管理',
                component: () => import('@/views/admin/user/user.vue'),
                meta: defaultMeta
            },
            {
                path: '/views/admin/userAkSk/userAkSk',
                name: 'ak/sk 管理',
                component: () => import('@/views/admin/userAkSk/userAkSk.vue'),
                meta: defaultMeta
            },
            {
                path: '/views/admin/number/number',
                name: '编号管理',
                component: () => import('@/views/admin/number/number.vue'),
                meta: defaultMeta
            },
            {
                path: '/views/admin/monitor/jvmInfo',
                name: '系统信息',
                component: () => import('@/views/admin/monitor/jvmInfo.vue'),
                meta: defaultMeta
            },
            {
                path: '/views/test/gcMenu/gcMenu',
                name: '自关联页生成-测试',
                component: () => import('@/views/test/gcMenu/gcMenu.vue'),
                meta: defaultMeta
            },
            {
                path: '/views/test/gcTest/gcTest',
                name: '单页生成-测试',
                component: () => import('@/views/test/gcTest/gcTest.vue'),
                meta: defaultMeta
            },
        ]
    }
]